<?php
    $delay = 1;
    if(key_exists("d", $_GET) and is_numeric($_GET['d'])){
        $delay=(int)$_GET['d'];
    }
    sleep($delay);
    header('Content-type: application/json');
    ?>{"message" : "<?php echo $delay?>s server side processing"}
